<template>
  <div>
    <datascreen />
    <public-security v-if="type === '1'" />
    <government v-if="type === '2'" />
  </div>
</template>

<script>
import Datascreen from './components/datascreen'
import Government from './components/government'
import PublicSecurity from './components/public-security'
import { getLoginType } from '@/utils/common'
export default {
  name: 'Index',
  components: { Government, PublicSecurity, Datascreen },
  data() {
    return {
      type: ''
    }
  },
  mounted() {
    const type = getLoginType()
    this.type = type
    console.log('登录类型', type)
  }
}
</script>

<style scoped>

</style>
